﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="VCN.admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="Style/login-box.css"rel="stylesheet" type="text/css" />
</head>
<body>
<form method="post" name="frmlogin" id="frmlogin" action="" runat="server">
    <div>
<div id="login-box">
<H2><img alt='user-login' src="img/user_lock.png"/>Login</H2>
<br />
<div id="login-box-name" style="margin-top:10px;">Username:</div>
<div id="login-box-field">
 <asp:TextBox CssClass="form-login" ToolTip="Username" id="txtUser" runat="server" Width="225px"/>
    <asp:RequiredFieldValidator ID="required" ControlToValidate="txtUser" 
                                ErrorMessage="Bạn chưa điền uesrname" runat="server" SetFocusOnError="true"></asp:RequiredFieldValidator>                          
                        &nbsp;&nbsp;<br />
                            <asp:RegularExpressionValidator ID="m_regu_validate" runat="server" ControlToValidate="txtUser"
                            ErrorMessage="UserName không đúng định dạng" ValidationExpression="^[a-zA-Z0-9_]{4,30}$"></asp:RegularExpressionValidator>
</div>
<div id="login-box-name">Password:</div>
<div id="login-box-field">
<asp:TextBox TextMode="Password" CssClass="form-login" ToolTip="Password" width="225px" id="txtPass" runat="server"/>
<asp:RequiredFieldValidator ID="rePss" ControlToValidate="txtPass" runat="server" 
                            ErrorMessage="Bạn chưa điền password" SetFocusOnError="true"></asp:RequiredFieldValidator>
                             <br /><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPass"
                            ErrorMessage="Password không đúng định dạng" ValidationExpression="^[a-zA-Z0-9_!@#$%&*_()+;\s]{4,30}$"></asp:RegularExpressionValidator>
</div>
 <asp:Label ID="lbl_error" Visible="false" runat="server" Text="" CssClass="lbl_error"></asp:Label>
<br />
<br />
  <asp:Button Text="" id="cmd_login" runat="server" CssClass="css-button-login"
                             OnClick="cmd_login_Click"  />
</div>

</div>
</form>
</body>
</html>
